package com.yz.xyt.domain.vo;

import com.yz.xyt.constant.Constants;
import com.yz.xyt.domain.Clazz;

public class ClazzVo  extends Clazz {
    private Integer pageSize;

    private Integer pageNumber;

    private String majorName;

    private String staffName;

    private String dname;

    private String deptNumber;

    public Integer getPageSize() {
        return pageSize = "".equals(pageSize) || pageSize == null ? Constants.DEFAULT_PAGE_SIZE : pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNumber() {
        return pageNumber = "".equals(pageNumber) || pageNumber ==null ? Constants.DEFAULT_PAGE_NUMBER : pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDeptNumber() {
        return deptNumber;
    }

    public void setDeptNumber(String deptNumber) {
        this.deptNumber = deptNumber;
    }

    @Override
    public String toString() {
        return "ClazzVo{" +
                "pageSize=" + pageSize +
                ", pageNumber=" + pageNumber +
                ", majorName='" + majorName + '\'' +
                ", staffName='" + staffName + '\'' +
                ", dname='" + dname + '\'' +
                ", deptNumber='" + deptNumber + '\'' +
                '}';
    }
}
